/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: OrderFacade
 * Author:   zhouheng
 * Date:     2019/5/2 22:50
 * Description: 订单门面
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.patterns.com.zhouh.structure.facade;

/**
 * 〈提供一个入口接口服务〉<br>
 * 〈订单门面〉
 *
 * @author zhouheng
 * @create 2019/5/2
 * @since 1.0.0
 */
public class OrderFacade {
    private PickService pickService;
    private PackService packService;
    private SendService sendService;

    public OrderFacade(){
        pickService = new PickService();
        packService = new PackService();
        sendService = new SendService();
    }

    /**
     * @description: 客户订单处理类
     * @date: 2019/5/2 23:14
     * @author:zhouheng
     */
    public void doOrder(){
        //采摘
        System.out.println("--------------");
        pickService.doPick();

        //包装
        System.out.println("--------------");
        packService.doPack();
        //快递
        System.out.println("--------------");
        sendService.doSend();
    }

}